package com.town.garden.storage;

import com.town.garden.entiy.ChannelInfo;
import org.springframework.context.ApplicationContext;
import org.springframework.http.HttpHeaders;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Description nvr 会话信息存储实体对象
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/5/13
 */
public class NvrSessionStorage {
    /**
     * cookie
     */
    public static String strCookie;
    /**
     * X-csrftoken
     */
    public static String strXCsrfToken;

    /**
     * 公共认证信息请求头
     */
    public static HttpHeaders headers;

    /**
     * 查询告警事件readerId
     */
    public volatile static Integer readerId;
    /**
     * 查询告警事件sequence
     */
    public volatile static Integer sequence;
    /**
     * 查询告警事件lapNumber
     */
    public volatile static Integer lapNumber;

    /**
     * 存放当前nvr所有通道名称对应的ip
     */
    public static final Map<String, ChannelInfo> CHANNEL_IP_MAP = new ConcurrentHashMap<>();
    /**
     * spring 容器对象
     */
    public static ApplicationContext applicationContext;
}
